package main

import (
	"git.oschina.net/xudi/design-pattern/strategy/ducksimulator"
	"fmt"
)

func main() {
	duck := ducksimulator.NewMallardDuck()
	duck.PerformFly()
	duck.PerformQuack()
	duck.Swim()
	duck.Display()

	fmt.Println("-----------------")
	duck.SetFlyBehavior(ducksimulator.FlyWithRocket{})
	duck.PerformFly()
}
